package com.yf.dxapp.module.app.controller.admin.courseitem.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Schema(description = "管理后台 - 课程明细新增/修改 Request VO")
@Data
public class CourseItemSaveReqVO {

    @Schema(description = "课节id", requiredMode = Schema.RequiredMode.REQUIRED, example = "356")
    private Long id;

    @Schema(description = "主课程id", requiredMode = Schema.RequiredMode.REQUIRED, example = "3155")
    @NotNull(message = "主课程id不能为空")
    private Long mainCourseId;

    @Schema(description = "课节名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "课节名称不能为空")
    private String title;

    @Schema(description = "课节描述", example = "你说的对")
    private String description;

    @Schema(description = "课节编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "课节编号不能为空")
    private Long courseNo;

    @Schema(description = "课节编号描述", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "课节编号描述不能为空")
    private String courseNoStr;

    @Schema(description = "FILE-课节视频地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @NotEmpty(message = "FILE-课节视频地址不能为空")
    private String url;

    @Schema(description = "时长", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "时长不能为空")
    private Integer time;

    /**
     * IMG-课节封面
     */
    @Schema(description = "课节封面")
    private String cover;

}